<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jsp生命周期</title>
</head>
<body>
	<%! 
	   int initCount = 0;
	   int destoryCount = 0;
	   int requestCount = 0;
	%>
	
	<%! 
	   public void jspInit(){
			initCount++;
	   }
	%>
	
	<%!
	   public void jspDestroy(){
		 destoryCount++;
	   }
	%>
	
	<%
	     requestCount++;
	%>
	
	
	<p>jspInit方法执行次数:<%=initCount%></p>
	<p>jspDestroy方法执行次数:<%=destoryCount%></p>
	<p>请求响应次数:<%=requestCount%></p>


</body>
</html>